﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OSA.Policlinic.UI.WFAplication.DoctorWCF.RegistryServiceReference
{
    public partial class Diagnosis : BusinessObjectBase
    {
        private string _name;
     
        public Diagnosis()
        {

            this.Survey =  new Survey();
        }

        public Diagnosis(int id, bool isDeleted, string name, Survey survey)
            : base(id, isDeleted)
        {
            _name = name;
            Survey = survey;
        }

        public Diagnosis(string name, Survey survey)
        {
            _name = name;
            Survey = survey;
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                if ((this._name != value))
                {
                    this._name = value;
                }
            }
        }

        public Survey Survey
        {
            get
            {
                return this.Survey;
            }
            set
            {
                Survey previousValue = this.Survey;
                if (previousValue != value)
                {
                 
                    this.Survey = value;
                  
                }
            }
        }

      
    }
	
}
